// pages/list.js
var qcloud = require('../../vendor/wafer2-client-sdk/index');
var config = require('../../config');
var util = require('../../utils/util.js');
var items_url = `${config.service.host}/weapp/demo/items`;
qcloud.request({
  url: items_url,
  login: false,
  success:function(result) {
    util.showSuccess('请求成功完成');
    Page({
      data: {
        userInfo: {},
        logged: false,
        takeSession: false,
        requestResult: result.data.list,
      }
    })
  },
  fail:function(error) {
    util.showModel('请求失败', error);
    console.log('request fail', error);
  }
});